import os, platform

BASE_URL = "http://10.1.201.231:8080"
BASE_DIR = os.path.dirname(os.path.abspath(__file__))

HEADERS = {"Content-Type": "application/json"}
COOKIES = {"JSESSIONID": "c6a0272f-e39c-417a-b696-3785f2543227"}

MYSQL_HOST = "10.1.201.231"
MYSER_USER = "root"
MYSQL_PASSWORD = "123456"
MYSQL_PORT=3307

# 该项MYSQL_HOME的配置需要根据需要灵活调整
MYSQL_HOME = ""
if platform.system() == 'Windows':
    MYSQL_HOME = r"C:\Users\Ghost\Documents\tools\lagou\phpStudy\PHPTutorial\MySQL"
if platform.system() == 'Linux':
    rs = os.popen("whichi")
    MYSQL_HOME = rs.read().strip
